package com.hiof.moraa.server.controller.restfulservice;

import com.hiof.moraa.server.service.model.*;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/restfulservice")
public class NextHotSpotLocationInfoController {

    @RequestMapping(value = "/nexthotspot", method = RequestMethod.POST)
    @ResponseBody
    public HotSpotInfoPacket hotSpotLocationServiceMethod(
            @RequestParam("athleteId") int userId) throws Exception {
        return new HotSpotInfoPacket(300, 5);
        //TODO: Implement the service, change the line below to appropriate block code
    }
}
